package com.zyk.plugin.dns;

import net.bytebuddy.asm.Advice;

public class GetHostNameAdvice {

    @Advice.OnMethodEnter(suppress = Throwable.class)
    static void enter(@Advice.Origin String origin, @Advice.AllArguments Object[] args){
    }

    @Advice.OnMethodExit(suppress = Throwable.class, onThrowable = Throwable.class)
    static void exit(@Advice.Return(readOnly = false) String returnValue){
        returnValue = returnValue + " [rewritten return value]";
    }

}
